package com.staff.service;

import java.util.List;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import com.common.util.AJAXResultMessage;
import com.staff.entity.Staff;
import com.staff.entity.StaffArchive;
import com.staff.entity.dto.StaffQueryDTO;

public interface IStaffService {
	public AJAXResultMessage saveOrUpdate(StaffQueryDTO staffDTO);
	public void delete(Staff staff);
	public Staff findOne(Long id);
	public Staff findOne(String staffNum);
	public Staff findStaff(String staffNum,String password);
	public List<Staff> findAll();
	public void delete(List<Long>ids);
	
	
	public StaffArchive findStaffArchive(Staff staff);
	//动态条件查询
	public Page<StaffQueryDTO> findAll(Specification<Staff> spec, Pageable pageable);
}
